package com.hewanglan.subject.infra.basic.service;


import com.hewanglan.subject.common.entity.PageResult;
import com.hewanglan.subject.infra.basic.entity.SubjectInfoES;

public interface SubjectEsService {
    /**
     * 插入文档到ES
     * @param subjectInfoES
     * @return
     */
    boolean insert(SubjectInfoES subjectInfoES);

    /**
     * 全文检索，对关键字高亮
     * @param subjectInfoES
     * @return
     */
    PageResult<SubjectInfoES> querySubjectList(SubjectInfoES subjectInfoES);

}
